﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web
{
    public partial class WebMesDetails : System.Web.UI.Page
    {
        public Model.tb_message model = new Model.tb_message();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["Id"]!=null)
                {
                    int Id = 0;
                    if (int.TryParse(Request.QueryString["Id"],out Id))
                    {
                        var test = Common.SqlExption.GetList<Model.tb_message>().FirstOrDefault(c => c.Id.Equals(Id));
                        if (test!=null)
                        {
                            model = test;
                        }
                    }
                }
            }
        }
    }
}